package com.qf.purchasing.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 采购细节表
 */
@Data
@TableName(value = "z_detail")
public class Detail {
    public static final String COL_DETAIL_ID = "detail_id";
    public static final String COL_ITEMS = "items";
    public static final String COL_TIME = "time";
    public static final String COL_NUM = "num";
    public static final String COL_COMMENT = "comment";
    public static final String COL_SCHEDULE_ID = "schedule_id";
    public static final String COL_STATUS = "status";
    /**
     * 采购明细id
     */
    @TableId(value = "detail_id", type = IdType.INPUT)
    private Integer detailId;
    /**
     * 项目名称
     */
    @TableField(value = "items")
    private String items;
    /**
     * 采购计划时间
     */
    @TableField(value = "`time`")
    private Date time;
    /**
     * 数量
     */
    @TableField(value = "num")
    private Integer num;
    /**
     * 备注
     */
    @TableField(value = "`comment`")
    private String comment;
    /**
     * 计划表id
     */
    @TableField(value = "schedule_id")
    private Integer scheduleId;
    /**
     * 状态：0为删除，1为存在
     */
    @TableField(value = "`status`")
    @TableLogic(delval = "0", value = "1")
    private Integer status;
}